<?php
	$num = count($this->keyword);
	$uname =  CHtml::encode($data->user_name); 
	$uname= str_ireplace($this->keyword,"<font color='#FF0000'>".$this->keyword."</font>",$uname);	
	$favor = CHtml::encode($data->favor_name); 
	$favor= str_ireplace($this->keyword,"<font color='#FF0000'>".$this->keyword."</font>",$favor);	
?>

<li class="huangyu_li clearfix">
    <div class="huangyu_li_left">
		<a href="/upper/<?=$data['user_id']?>"><img src="<?=NC::getUserIcon($data['user_id'])?>" height="40px" width="40px" class="huangyu_icon" /></a>
    </div>
    <div class="huangyu_li_right">
		<a href="/upper/<?=$data['user_id']?>" class="name"><?=$uname?></a>
		<div>
		<?=$favor?>
		</div>
		<div>
			<img src="/images/right_share.jpg">
			<span>分享(<?=$data['share_num']?>)</span>
			<img src="/images/comm.jpg">
			<span>评论(<?=$data['comment_num']?>)</span>
		</div>
     </div>
	 <?if(!Yii::app()->user->isGuest && Yii::app()->user->id !=$data->user_id):?>
	 <a href="javascript:" class="search_upper add-upper doit" id="<?="ad".$data->user_id?>"></a>
	 <?endif?>
</li>

